<template>
	<view>
		<view class="top">
			绑定手机号码
		</view>
		<view class="content">
			<view class="list">
				<view class="left">
					+86
				</view>
				<input type="text" class="input" v-model="telphone" placeholder="手机号" />
			</view>
		</view>
		<view class="button">
			<u-button type="success" :ripple="true" class="b1 ubutton">发送验证码</u-button>
		</view>
	</view>
</template>

<script>
	var than;
	export default {
		data() {
			return {
				telphone: ""
			}
		},
		onLoad(option) {
			than = this;
		},
		methods: {
			onChange(val) {
				if (this.password.length < 6) {
					this.password += val;
				}

				if (this.password.length >= 6) {
					than.show = false;
				}
			},
			onBackspace(e) {
				if (this.password.length > 0) {
					this.password = this.password.substring(0, this.password.length - 1);
				}
			},
		}
	}
</script>

<style lang="less">
	.detail {
		padding: 0 50rpx;
		overflow: hidden;

		.icon {
			margin-top: 10rpx;
			float: left;
			width: 24rpx;
			height: 24rpx;
			background: #FFFFFF;
			border: 2rpx solid #C1C1C1;
			border-radius: 12rpx;
			display: flex;
			align-items: center;
			justify-content: center;

			view {
				width: 16rpx;
				height: 16rpx;
				background: #FFC31E;
				border-radius: 8rpx;
			}
		}

		.text {
			margin-left: 15rpx;
			width: 598rpx;
			float: left;
			font-size: 24rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #9B9CA0;
			line-height: 40rpx;

			text {
				color: #D8A518;
			}
		}
	}

	.content {
		text-align: center;
		padding-bottom: 40rpx;

		.list {
			display: flex;
			align-items: center;
			margin: auto;
			width: 650rpx;
			height: 100rpx;
			background: #FFFFFF;
			border: 1px solid #8E8E8E;
			border-radius: 20rpx;

			.left {
				margin-left: 0;
				width: 128rpx;
				border-right: 2rpx solid #E6E6E6;
			}

			.input {
				text-align: left;
				padding-left: 31rpx;
			}
		}
	}

	.button {
		padding: 0 50rpx;

		.b1 {
			background: #FEC31D;
		}

		.b2 {
			background: #FFFFFF;
		}

		.ubutton {
			border: 0;
			width: 650rpx;
			height: 100rpx;
			margin-bottom: 41rpx;
		}
	}

	.top {
		padding: 80rpx 50rpx;
		font-size: 52rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: #3F3F3F;
	}
</style>
